<?php
namespace app\manager\model;

use think\Model;
use app\common\traits\model\TraitModel;

class Cards extends Model
{
    use TraitModel;
    protected $table = 'cards';

    public function camps()
    {
    	return $this->belongsTo('Camps','services');
    }

    public function caravans()
    {
    	return $this->belongsTo('Caravans','caravan_id');
    }

    public function createCards($post_card_info)
    {
        return $this->create($post_card_info);
    }

    public function getCardLists($querys = [])
    {
        return $this->getInfoList($querys);
    }

    public function getCardInfo($id)
    {
        return $this->where('id',$id)->find();
    }

}